package com.kasax.test.bc.viewmodel

import androidx.lifecycle.ViewModel
import com.kasax.test.bc.model.netapi.HttpClientModel
import com.kasax.test.bc.model.netapi.KtorModel
import com.kasax.test.bc.model.netapi.OKHttpClientModel
import com.kasax.test.bc.model.netapi.RetrofitModel
import com.kasax.test.bc.model.netapi.VolleryModel
import com.kasax.test.bc.model.netapi.XUtilsModel

/**
 * 开源网络库库测试组件
 */
class OpenSDKNetworkComponentTestViewModel : ViewModel() {
    val httpClientModel: HttpClientModel by lazy { HttpClientModel() }
    val xUtilsModel: XUtilsModel by lazy { XUtilsModel() }
    val volleryModel: VolleryModel by lazy { VolleryModel() }
    val okHttpClientModel: OKHttpClientModel by lazy { OKHttpClientModel() }
    val retrofitModel: RetrofitModel by lazy { RetrofitModel() }
    val ktorModel: KtorModel by lazy { KtorModel() }

    fun testGetIpAddrWithHttpClient() {

    }

    fun getToabaiIpWithHttpClient() {

    }

    fun getFormUrlWithHttpClient() {

    }

    fun getJsonParamWithHttpClient() {

    }

    fun getXmlParamWithHttpClient() {

    }

    fun testWanAndroidBannersWithHttpClient() {

    }

    fun testWanAndroidLoginWithHttpClient() {

    }

    fun testGetIpAddrWithXUtils() {

    }

    fun getToabaiIpWithXUtils() {

    }

    fun getFormUrlWithXUtils() {

    }

    fun getJsonParamWithXUtils() {

    }

    fun getXmlParamWithXUtils() {

    }

    fun testWanAndroidBannersWithXUtils() {

    }

    fun testWanAndroidLoginWithXUtils() {

    }

    fun testGetIpAddrWithVollery() {

    }

    fun getToabaiIpWithVollery() {

    }

    fun getFormUrlWithVollery() {

    }

    fun getJsonParamWithVollery() {

    }

    fun getXmlParamWithVollery() {

    }

    fun testWanAndroidBannersWithVollery() {

    }

    fun testWanAndroidLoginWithVollery() {

    }

    fun testGetIpAddrWithOKHttpClient() {
        okHttpClientModel.testGetIpAddr()
    }

    fun getToabaiIpWithOKHttpClient() {
        okHttpClientModel.getToabaiIp()
    }

    fun getFormUrlWithOKHttpClient() {
        okHttpClientModel.getFormUrl()
    }

    fun getJsonParamWithOKHttpClient() {
        okHttpClientModel.getJsonParam()
    }

    fun getXmlParamWithOKHttpClient() {
        okHttpClientModel.getXmlParam()
    }

    fun testWanAndroidBannersWithOKHttpClient() {
        okHttpClientModel.testWanAndroidBanners()
    }

    fun testWanAndroidLoginWithOKHttpClient() {
        okHttpClientModel.testWanAndroidLogin()
    }

    fun testGetIpAddrWithRetrofit() {
        retrofitModel.testGetIpAddr()
    }

    fun getToabaiIpWithRetrofit() {
        retrofitModel.testGetIpAddr()
    }

    fun getFormUrlWithRetrofit() {
        retrofitModel.getFormUrl()
    }

    fun getJsonParamWithRetrofit() {
        retrofitModel.getJsonParam()
    }

    fun getXmlParamWithRetrofit() {
        retrofitModel.getXmlParam()
    }

    fun testWanAndroidBannersWithRetrofit() {
        retrofitModel.testWanAndroidBanners()
    }

    fun testWanAndroidLoginWithRetrofit() {
        retrofitModel.testWanAndroidLogin()
    }

    fun testGetIpAddrWithKtor() {

    }

    fun getToabaiIpWithKtor() {

    }

    fun getFormUrlWithKtor() {

    }

    fun getJsonParamWithKtor() {

    }

    fun getXmlParamWithKtor() {

    }

    fun testWanAndroidBannersWithKtor() {

    }

    fun testWanAndroidLoginWithKtor() {

    }
}